home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 24 / CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso / CUCD / Utilities / vim-5.1 / src / ascii.h next >
Encoding:
C/C++ Source or Header  |  1998-02-14  |  1.0 KB  |  46 lines

  1. /* vi:set ts=8 sts=4 sw=4:
  2.  *
  3.  * VIM - Vi IMproved    by Bram Moolenaar
  4.  *
  5.  * Do ":help uganda"  in Vim to read copying and usage conditions.
  6.  * Do ":help credits" in Vim to see a list of people who contributed.
  7.  */
  8.  
  9. /*
  10.  * Definitions of various common control characters
  11.  */
  12.  
  13. #define NUL            '\000'
  14. #define BS            '\010'
  15. #define TAB            '\011'
  16. #define NL            '\012'
  17. #define NL_STR            (char_u *)"\012"
  18. #define FF            '\014'
  19. #define CR            '\015'
  20. #define ESC            '\033'
  21. #define ESC_STR            (char_u *)"\033"
  22. #define DEL            0x7f
  23. #define CSI            0x9b
  24.  
  25. #define Ctrl(x) ((x) & 0x1f)
  26. #define Meta(x) ((x) | 0x80)
  27.  
  28. /*
  29.  * Character that separates dir names in a path.
  30.  * For MS-DOS, WIN32 and OS/2 we use the backslash.  A slash mostly works
  31.  * fine, but there are places where it doesn't (e.g. in a command name).
  32.  * For Macintosh we use the colon.
  33.  */
  34. #ifdef BACKSLASH_IN_FILENAME
  35. # define PATHSEP '\\'
  36. # define PATHSEPSTR "\\"
  37. #else
  38. # ifdef COLON_AS_PATHSEP
  39. #  define PATHSEP ':'
  40. #  define PATHSEPSTR ":"
  41. # else
  42. #  define PATHSEP '/'
  43. #  define PATHSEPSTR "/"
  44. # endif
  45. #endif
  46.